package cn.mmko.trigger.listener;

import com.google.common.eventbus.Subscribe;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.stereotype.Component;

/**
 * author: mmko
 *
 */
@Slf4j
@Component
@EnableScheduling
public class OrderPaySuccessListener {
    @Subscribe
    public void handleEvent(String paySuccessMessage) {
        log.info("订单支付成功，订单号：{}", paySuccessMessage);
    }
}
